/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package events.animation;

import gui.SnazzySpritesGUI;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import renderer.SceneRenderer;
import snazzysprites.SnazzySprites;
import state.SnazzySpritesStateManager;

/**
 * Responds to the user requesting to pause the animation
 * @author Andrew
 */
public class StopAnimationHandler implements ActionListener{
    
    @Override
    public void actionPerformed(ActionEvent e) {
            SnazzySprites singleton = SnazzySprites.getSnazzySprites();
            SnazzySpritesStateManager manager = singleton.getStateManager();
            SnazzySpritesGUI gui = singleton.getGUI();
            gui.getPreviewRenderer().pauseScene();
    }
    
}
